<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/WEB-INF/facelets/templates/template.xhtml">

  <ui:define name="menu">
				<h:form>
					<p:menubar style="padding:0 0 0 70px;">

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
			                  Nosotros 
			                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Información General" url="#" />
							<p:menuitem value="Mission Vision" url="#" />
							<p:menuitem value="Estructura UNCP" url="#" />

							<p:submenu label="Como llegar ?">
								<p:menuitem value="Mapa del Campus" url="#" />
							</p:submenu>

						</p:submenu>

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;
			                 Generar Comprobantes
			                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Generar Comprobantes" action="generacionCDP.xhtml"  ajax="false"/>
						</p:submenu>

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;
			                 CDP Generados 
			                 &nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="CDP Generados " action="listarCDP.xhtml"  ajax="false"/>
						</p:submenu>
						
						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                Session
			                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Cerrar Session"  ajax="false" action="#{cUsuarioSistemaController.cerrarCession}"  />
						</p:submenu>
						

					</p:menubar>


				</h:form>
			</ui:define>



	<ui:define name="bodyLateralIzquierdo">

		<div align="center" style="margin: 60px 0 0 0;">

			<h:form>

				<p:dataTable var="cdp" value="#{cComprobanteDePago.lstECdp}"
					paginator="true" rows="10" rowsPerPageTemplate="5,10,15" >
					<f:facet name="header">
						<h:outputText value="#{msg.listaCDP}" />
					</f:facet>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.codCDP}" />
						</f:facet>
						<h:outputText value="#{cdp.str_codcdp}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.conceptoCDP}" />
						</f:facet>
						<h:outputText value="#{cdp.str_concepto}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.fechaCDP}" />
						</f:facet>
						<h:outputText value="#{cdp.str_fecha}">
							<f:convertDateTime type="both" dateStyle="short" />
						</h:outputText>
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.totalCDP}" />
						</f:facet>
						<h:outputText value="#{cdp.dbl_total}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.estadoCDP}" />
						</f:facet>
						<h:outputText value="#{cdp.str_estado}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.postulante}" />
						</f:facet>
						<h:outputText value="#{cdp.postulante.nombreCompleto}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.dniPost}" />
						</f:facet>
						<h:outputText value="#{cdp.postulante.str_dni_postu}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="#{msg.telfPost}" />
						</f:facet>
						<h:outputText value="#{cdp.postulante.str_telefo_postu}" />
					</p:column>
				</p:dataTable>

			</h:form>








		</div>




	</ui:define>
</ui:composition>
</html>